const schemas = {
  "getCaptcha": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          },
          "captchaId": {
            "type": "string",
            "description": "图形验证码唯一ID"
          },
          "captcha": {
            "type": "string",
            "description": "图形验证码base64字符串"
          }
        },
        "required": [
          "optResult",
          "captchaId",
          "captcha"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "userLogin": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          },
          "residualTimes": {
            "type": "number",
            "description": "账号密码输入错误剩余次数"
          },
          "userId": {
            "type": "string",
            "description": "用户帐号对应的用户ID"
          },
          "nickName": {
            "type": "string",
            "description": "用户昵称"
          },
          "roleType": {
            "type": "string",
            "description": "角色类型"
          },
          "sessionId": {
            "type": "string",
            "description": "登录鉴权ID"
          },
          "roleFrontAuthInfo": {
            "required": [
              "frontsysId",
              "frontSysName",
              "menus"
            ],
            "description": "用户角色的前端授权访问信息对象",
            "type": "object",
            "properties": {
              "frontsysId": {
                "description": "授权访问的前端系统ID",
                "type": "number"
              },
              "frontSysName": {
                "type": "string",
                "description": "授权访问的前端系统名称"
              },
              "menus": {
                "type": "array",
                "description": "前端系统菜单信息列表",
                "items": {
                  "title": "menu",
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "number",
                      "description": "菜单项ID"
                    },
                    "parentId": {
                      "description": "菜单项的父菜单ID号，如果为顶级菜单则此项值为0",
                      "type": "number"
                    },
                    "menuname": {
                      "type": "string",
                      "description": "菜单项名称"
                    },
                    "uri": {
                      "type": "string",
                      "description": "菜单项访问uri路径"
                    },
                    "menus": {
                      "type": "array",
                      "description": "本菜单项下子菜单对象列表",
                      "items": {
                        "type": "object"
                      }
                    }
                  },
                  "required": [
                    "id",
                    "parentId",
                    "menuname",
                    "uri"
                  ],
                  "description": ""
                }
              }
            }
          }
        },
        "required": [
          "optResult",
          "userId",
          "nickName",
          "roleType",
          "sessionId",
          "roleFrontAuthInfo"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "userLogout": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          }
        },
        "required": [
          "optResult"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "addArea": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "description": "操作结果",
            "type": "number"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          },
          "id": {
            "type": "string",
            "description": "地区ID"
          }
        },
        "required": [
          "optResult",
          "id"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "deleteArea": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          }
        },
        "required": [
          "optResult"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "getArea": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "操作结果"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          },
          "name": {
            "type": "string",
            "description": "地区名称"
          },
          "sort": {
            "type": "string",
            "description": "排序"
          },
          "code": {
            "type": "string",
            "description": "地区代码"
          },
          "type": {
            "type": "string",
            "description": "地区类型（1：国家；2：省份、直辖市；3：地市；4：区县）"
          },
          "parentId": {
            "type": "string",
            "description": "父级地区id"
          },
          "parentIds": {
            "type": "string",
            "description": "所有父级地区id"
          }
        },
        "required": [
          "optResult",
          "name",
          "sort",
          "code",
          "type",
          "parentId",
          "parentIds"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "getListAreas": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "操作结果"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          },
          "areas": {
            "type": "array",
            "description": "Area对象列表",
            "items": {
              "type": "object",
              "properties": {
                "parentId": {
                  "type": "string",
                  "description": "父地区ID"
                },
                "parentIds": {
                  "type": "string",
                  "description": "父地区ID集合"
                },
                "name": {
                  "type": "string",
                  "description": "地区名称"
                },
                "sort": {
                  "type": "string",
                  "description": "排序"
                },
                "code": {
                  "type": "string",
                  "description": "地区代码"
                },
                "type": {
                  "type": "string",
                  "description": "地区类型（1：国家；2：省份、直辖市；3：地市；4：区县）"
                },
                "id": {
                  "type": "string",
                  "description": "地区id"
                },
                "children": {
                  "type": "array",
                  "description": "子机构信息",
                  "items": {
                    "type": "object"
                  }
                }
              },
              "required": [
                "parentId",
                "parentIds",
                "name",
                "sort",
                "code",
                "type",
                "id"
              ]
            }
          }
        },
        "required": [
          "optResult",
          "areas"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "addCompany": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          },
          "companyId": {
            "type": "string",
            "description": "机构ID"
          }
        },
        "required": [
          "optResult",
          "companyId"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "deleteCompany": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          }
        },
        "required": [
          "optResult"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "modCompany": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          }
        },
        "required": [
          "optResult"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "getCompany": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作结果"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          },
          "name": {
            "type": "string",
            "description": "机构名称"
          },
          "sort": {
            "type": "string",
            "description": "排序"
          },
          "areaId": {
            "type": "string",
            "description": "归属地区ID"
          },
          "type": {
            "type": "string",
            "description": "机构类型（1：公司；2：部门；3：小组）"
          },
          "grade": {
            "type": "string",
            "description": "机构等级（1：一级；2：二级；3：三级；4：四级）"
          },
          "address": {
            "type": "string",
            "description": "机构地址"
          },
          "longitude": {
            "type": "string",
            "description": "机构所在经度"
          },
          "latitude": {
            "type": "string",
            "description": "机构所在纬度"
          },
          "master": {
            "type": "string",
            "description": "机构联系人姓名"
          },
          "phone": {
            "type": "string",
            "description": "机构联系人电话"
          },
          "email": {
            "type": "string",
            "description": "机构联系人 email"
          }
        },
        "required": [
          "optResult",
          "name",
          "sort",
          "areaId",
          "type",
          "grade",
          "address",
          "longitude",
          "latitude",
          "master",
          "phone",
          "email"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "getListCompanies": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          },
          "companies": {
            "description": "Company对象列表",
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "parentId": {
                  "type": "string",
                  "description": "父地区ID"
                },
                "parentIds": {
                  "type": "string",
                  "description": "父地区ID集合"
                },
                "name": {
                  "type": "string",
                  "description": "机构名称"
                },
                "sort": {
                  "type": "string",
                  "description": "排序"
                },
                "areaId": {
                  "type": "string",
                  "description": "归属地区ID"
                },
                "type": {
                  "type": "string",
                  "description": "机构类型（1：公司；2：部门；3：小组）"
                },
                "grade": {
                  "type": "string",
                  "description": "机构等级（1：一级；2：二级；3：三级；4：四级）"
                },
                "address": {
                  "type": "string",
                  "description": "机构地址"
                },
                "longitude": {
                  "type": "string",
                  "description": "机构所在经度"
                },
                "latitude": {
                  "type": "string",
                  "description": "机构所在纬度"
                },
                "master": {
                  "type": "string",
                  "description": "机构联系人姓名"
                },
                "phone": {
                  "type": "string",
                  "description": "机构联系人电话"
                },
                "email": {
                  "type": "string",
                  "description": "机构联系人email"
                },
                "children": {
                  "type": "array",
                  "description": "子机构信息",
                  "items": {
                    "type": "object"
                  }
                }
              },
              "required": [
                "parentId",
                "parentIds",
                "name",
                "sort",
                "areaId",
                "type",
                "grade",
                "address",
                "longitude",
                "latitude",
                "master",
                "phone",
                "email"
              ]
            }
          }
        },
        "required": [
          "optResult",
          "companies"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "addRole": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          },
          "roleId": {
            "type": "string",
            "description": "角色ID"
          }
        },
        "required": [
          "optResult",
          "roleId"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "modRole": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          }
        },
        "required": [
          "optResult"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "deleteRole": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          }
        },
        "required": [
          "optResult"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "getRole": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          },
          "name": {
            "type": "string",
            "description": "角色名称"
          },
          "displayName": {
            "type": "string",
            "description": "角色显示名称"
          },
          "roleType": {
            "type": "string",
            "description": "角色类型：\nsystem – 系统级别角色\nuser – 用户级别角色"
          },
          "companyId": {
            "type": "string",
            "description": "角色所归属的机构ID，如果取值为all，则为所有机构都可以用本角色；如果为特定的机构ID，则本角色仅为该机构所用"
          },
          "properties": {
            "description": "角色的属性定义字段，json结构。根据每个角色需求不同将该角色的所需要的属性加到这个字段中。业务系统应根据角色名称来判断这个字段中包含哪些属性key",
            "type": "object"
          },
          "usable": {
            "description": "当前本属性的用户是否可用：\n0 – 不可用\n1 – 可用",
            "type": "number"
          }
        },
        "required": [
          "optResult",
          "name",
          "displayName",
          "roleType",
          "companyId",
          "properties",
          "usable"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "getListRoles": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          },
          "roles": {
            "type": "array",
            "description": "角色对象列表",
            "items": {
              "type": "object",
              "properties": {
                "optResult": {
                  "type": "string",
                  "description": "值为0，操作成功"
                },
                "msg": {
                  "type": "string",
                  "description": "操作失败说明"
                },
                "roles": {
                  "type": "array",
                  "description": "角色对象列表",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "description": "角色ID"
                      },
                      "name": {
                        "type": "string",
                        "description": "角色名称"
                      },
                      "displayName": {
                        "type": "string",
                        "description": "角色显示名称"
                      },
                      "roleType": {
                        "type": "string",
                        "description": "角色类型：\nsystem – 系统级别角色\nuser – 用户级别角色"
                      }
                    },
                    "required": [
                      "id",
                      "name",
                      "displayName",
                      "roleType"
                    ]
                  }
                }
              },
              "required": [
                "optResult",
                "roles"
              ]
            }
          }
        },
        "required": [
          "optResult",
          "roles"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "addUser": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          },
          "userId": {
            "type": "string",
            "description": "用户ID"
          }
        },
        "required": [
          "optResult",
          "userId"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "registerUser": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          },
          "userId": {
            "type": "string",
            "description": "用户ID"
          }
        },
        "required": [
          "optResult",
          "userId"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "deleteUser": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          }
        },
        "required": [
          "optResult"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "modUser": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          },
          "userId": {
            "type": "string",
            "description": "用户ID"
          }
        },
        "required": [
          "optResult",
          "userId"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "modUserPassword": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          }
        },
        "required": [
          "optResult"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "getUserInfo": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "description": "值为0，操作成功",
            "type": "number"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          },
          "companyName": {
            "type": "string",
            "description": "归属机构名称"
          },
          "companyId": {
            "type": "string",
            "description": "归属机构ID"
          },
          "roleName": {
            "type": "string",
            "description": "所属角色名称"
          },
          "roleType": {
            "type": "string",
            "description": "所属角色类型"
          },
          "roleId": {
            "type": "string",
            "description": "所属角色ID"
          },
          "nick_name": {
            "type": "string",
            "description": "用户昵称，或者显示名称"
          },
          "login_name": {
            "type": "string",
            "description": "登录名称"
          },
          "mobile": {
            "type": "string",
            "description": "手机号码"
          },
          "email": {
            "type": "string",
            "description": "邮箱"
          },
          "address": {
            "type": "string",
            "description": "联系地址"
          },
          "contactor": {
            "type": "string",
            "description": "联系人"
          },
          "forbidden": {
            "description": "是否禁用用户的一切操作,0：否，1：是",
            "type": "number"
          }
        },
        "required": [
          "optResult",
          "companyName",
          "companyId",
          "roleName",
          "roleType",
          "roleId",
          "nick_name",
          "login_name",
          "mobile",
          "email",
          "address",
          "contactor",
          "forbidden"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "getListUsers": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          },
          "pageNo": {
            "type": "number",
            "description": "当前查询的页数（第几页）"
          },
          "totalDataCount": {
            "type": "number",
            "description": "总的记录条数（以便前端计算分页总数）"
          },
          "users": {
            "description": "User对象列表",
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "userId": {
                  "type": "string",
                  "description": "用户ID"
                },
                "nick_name": {
                  "type": "string",
                  "description": "用户显示名称"
                },
                "roleName": {
                  "type": "string",
                  "description": "所属角色名称"
                },
                "companyName": {
                  "type": "string",
                  "description": "所属机构名称"
                },
                "phone": {
                  "type": "string",
                  "description": "电话"
                },
                "email": {
                  "type": "string",
                  "description": "邮箱"
                }
              },
              "required": [
                "userId",
                "nick_name",
                "roleName",
                "companyName",
                "phone"
              ]
            }
          }
        },
        "required": [
          "optResult",
          "users"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "sendSmsauthocde": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          }
        },
        "required": [
          "optResult"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "getLoginRecords": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          },
          "totalDataCount": {
            "type": "number",
            "description": "总记录数"
          },
          "records": {
            "description": "用户登录记录",
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "username": {
                  "type": "string",
                  "description": "用户名"
                },
                "nickname": {
                  "type": "string",
                  "description": "用户昵称"
                },
                "operateTime": {
                  "type": "string",
                  "description": "操作时间"
                },
                "ip": {
                  "type": "string",
                  "description": "用户ip地址"
                },
                "result": {
                  "required": [
                    "optResult"
                  ],
                  "type": "object",
                  "description": "操作结果",
                  "properties": {
                    "optResult": {
                      "type": "number",
                      "description": "0为操作成功"
                    },
                    "msg": {
                      "type": "string",
                      "description": "说明"
                    }
                  }
                }
              },
              "required": [
                "username",
                "operateTime",
                "ip",
                "result"
              ]
            }
          }
        },
        "required": [
          "optResult"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "userloginSafeValidate": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          }
        },
        "required": [
          "optResult"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "usersForbidden": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          }
        },
        "required": [
          "optResult"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "addFrontsys": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          }
        },
        "required": [
          "optResult"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "deleteFrontsys": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          }
        },
        "required": [
          "optResult"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "getListFrontsys": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          },
          "fs": {
            "description": "前端系统对象列表",
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "前端系统ID号"
                },
                "frontsysname": {
                  "type": "string",
                  "description": "前端系统名称"
                },
                "description": {
                  "type": "string",
                  "description": "前端系统说明"
                }
              },
              "required": [
                "id",
                "frontsysname",
                "description"
              ]
            }
          }
        },
        "required": [
          "optResult"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "getFrontsys": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "description": "值为0，操作成功",
            "type": "number"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          },
          "baseInfo": {
            "description": "前端系统基础信息",
            "type": "object",
            "required": [
              "frontsysname",
              "description"
            ],
            "properties": {
              "frontsysname": {
                "type": "string",
                "description": "前端系统名称"
              },
              "description": {
                "type": "string",
                "description": "前端系统说明"
              }
            }
          },
          "menus": {
            "description": "前端系统菜单信息列表",
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "菜单项ID号"
                },
                "menuname": {
                  "type": "string",
                  "description": "菜单项名称"
                },
                "uri": {
                  "type": "string",
                  "description": "菜单项访问uri路径"
                },
                "menus": {
                  "description": "本菜单项下子菜单对象列表",
                  "type": "array",
                  "items": {
                    "type": "object"
                  }
                }
              },
              "required": [
                "id",
                "menuname",
                "uri"
              ]
            }
          }
        },
        "required": [
          "optResult",
          "baseInfo",
          "menus"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "addMenuitem": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          }
        },
        "required": [
          "optResult"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "modMenuitem": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          }
        },
        "required": [
          "optResult"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "deleteMenuitem": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          }
        },
        "required": [
          "optResult"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "getRoleAccess": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "description": "值为0，操作成功",
            "type": "number"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          },
          "roleFrontAuthInfo": {
            "type": "object",
            "description": "用户角色的前端授权访问信息对象",
            "required": [
              "frontsysId",
              "frontSysName",
              "menus"
            ],
            "properties": {
              "frontsysId": {
                "description": "授权访问的前端系统ID",
                "type": "number"
              },
              "frontSysName": {
                "type": "string",
                "description": "授权访问的前端系统名称"
              },
              "menus": {
                "type": "array",
                "description": "前端系统菜单信息列表",
                "items": {
                  "title": "menu",
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "number",
                      "description": "菜单项ID"
                    },
                    "parentId": {
                      "description": "菜单项的父菜单ID号，如果为顶级菜单则此项值为0",
                      "type": "number"
                    },
                    "menuname": {
                      "type": "string",
                      "description": "菜单项名称"
                    },
                    "uri": {
                      "type": "string",
                      "description": "菜单项访问uri路径"
                    },
                    "menus": {
                      "type": "array",
                      "description": "本菜单项下子菜单对象列表",
                      "items": {
                        "type": "object"
                      }
                    }
                  },
                  "required": [
                    "id",
                    "parentId",
                    "menuname",
                    "uri"
                  ],
                  "description": ""
                }
              }
            }
          }
        },
        "required": [
          "optResult",
          "roleFrontAuthInfo"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "getRoleListAccess": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          },
          "menus": {
            "description": "前端系统菜单信息列表",
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "number",
                  "description": "菜单项ID号"
                },
                "parentId": {
                  "type": "number",
                  "description": "菜单项的父菜单ID号，如果为顶级菜单则此项值为0"
                },
                "menuname": {
                  "type": "string",
                  "description": "菜单项名称"
                },
                "uri": {
                  "type": "string",
                  "description": "菜单项访问uri路径"
                },
                "menus": {
                  "type": "array",
                  "description": "本菜单项下子菜单对象列表",
                  "items": {
                    "type": "object"
                  }
                },
                "isAuth": {
                  "type": "number",
                  "description": "该菜单项当前是否授权给该角色，取值：0-未授权；1-已授权"
                }
              },
              "required": [
                "id",
                "parentId",
                "menuname",
                "uri",
                "isAuth"
              ]
            }
          }
        },
        "required": [
          "optResult",
          "menus"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "modRoleAccess": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          }
        },
        "required": [
          "optResult"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "getApiauth": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          },
          "roleApiAuthInfos": {
            "type": "array",
            "description": "用户角色的Api访问信息对象列表",
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "number",
                  "description": "授权访问的Api暴露目标类型，取值为：\napiinvoker - 此Api暴露给第三方调用者；\napigateway - 此Api暴露给Api网关\nfrontend - 此Api暴露给前端\nfixexternal - 此api暴露给固定外部服务"
                },
                "apis": {
                  "type": "array",
                  "description": "授权访问的Api信息对象列表",
                  "items": {
                    "type": "object",
                    "properties": {
                      "apiOprId": {
                        "type": "string",
                        "description": "Api操作对象ID"
                      },
                      "apiName": {
                        "type": "string",
                        "description": "授权访问的Api信息对象列表"
                      },
                      "version": {
                        "type": "number",
                        "description": "授权访问的Api信息对象版本号"
                      },
                      "uri": {
                        "type": "string",
                        "description": "授权访问的Api信息对象访问路径"
                      },
                      "methods": {
                        "type": "array",
                        "description": "授权访问的该Api的方法对象列表",
                        "items": {
                          "type": "object"
                        }
                      }
                    },
                    "required": [
                      "apiOprId",
                      "apiName",
                      "version",
                      "uri",
                      "methods"
                    ]
                  }
                }
              },
              "required": [
                "type",
                "apis"
              ]
            }
          }
        },
        "required": [
          "optResult",
          "roleApiAuthInfos"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "getApiauthList": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          },
          "roleApiAuthInfos": {
            "description": "用户角色的Api访问信息对象列表",
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "description": "授权访问的Api暴露目标类型，取值为：\napiinvoker - 此Api暴露给第三方调用者；\napigateway - 此Api暴露给Api网关\nfrontend - 此Api暴露给前端\nfixexternal - 此api暴露给固定外部服务",
                  "type": "number"
                },
                "apis": {
                  "description": "授权访问的Api信息对象列表",
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "apiOprId": {
                        "type": "string",
                        "description": "Api操作对象ID"
                      },
                      "apiName": {
                        "type": "string",
                        "description": "授权访问的Api信息对象列表"
                      },
                      "version": {
                        "type": "number",
                        "description": "授权访问的Api信息对象版本号"
                      },
                      "uri": {
                        "type": "string",
                        "description": "授权访问的Api信息对象访问路径"
                      },
                      "methods": {
                        "type": "array",
                        "description": "授权访问的该Api的方法对象列表",
                        "items": {
                          "type": "object",
                          "properties": {
                            "method": {
                              "type": "string",
                              "description": "Api方法名称"
                            },
                            "isAuth": {
                              "type": "number",
                              "description": "该Api方法是否被授权，取值：\n0-非授权；1-授权"
                            }
                          },
                          "required": [
                            "method",
                            "isAuth"
                          ]
                        }
                      },
                      "isAuth": {
                        "type": "number",
                        "description": "该Api是否被授权，取值：\n0-非授权；1-授权"
                      }
                    },
                    "required": [
                      "apiOprId",
                      "apiName",
                      "version",
                      "uri",
                      "methods",
                      "isAuth"
                    ]
                  }
                }
              },
              "required": [
                "type",
                "apis"
              ]
            }
          }
        },
        "required": [
          "optResult",
          "roleApiAuthInfos"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  },
  "modApiauth": {
    "responses": {
      "200": {
        "type": "object",
        "properties": {
          "optResult": {
            "type": "number",
            "description": "值为0，操作成功"
          },
          "msg": {
            "type": "string",
            "description": "操作失败说明"
          }
        },
        "required": [
          "optResult"
        ],
        "$schema": "http://json-schema.org/draft-04/schema#"
      }
    }
  }
}

export default schemas;
